<template>
	<view v-if="Sale">
		<!--  活动 -->
		<view class="coupon" v-if="Sale.actMoney > 0">
			<text class="color_33 size32">{{Sale.usedActTitle}}</text>
			<view class="couponBox" @click.stop="Show = true">
				<view class="d-flex a-center p-right20">
					<text class="color size26">-￥</text>
					<text class="color size36">{{Sale.actMoney.toFixed(2)}}</text>
				</view>
				<text class="iconfont icon-xiangyouxiayiye color_99 size26"></text>
			</view>
		</view>

		<u-popup :show="Show" @close="Show = false" mode="bottom" :round="10" closeable>
			<view class="Wrapper">
				<view class="head">{{Sale.usedActTitle}}</view>
				<view class="content">{{Sale.usedAct}}</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		props: ['Sale'],
		data() {
			return {
				Show: false,
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.coupon {
		width: 100%;
		padding: 20rpx 0;
		display: flex;
		align-items: center;

		.couponBox {
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: flex-end;
		}
	}

	.Wrapper {
		width: 100%;

		.head {
			width: 100%;
			padding: 30rpx 0 30rpx;
			display: flex;
			justify-content: center;
			color: #000;
			font-size: 34rpx;
			border-bottom: 1rpx solid #f8f8f8;
		}

		.content {
			width: 100%;
			min-height: 500rpx;
			padding: 30rpx;
			font-size: 32rpx;
		}
	}
</style>